<?php

namespace Es\Struct;
/**
 * 链接es结构体
 */
class ConnectStruct 
{
    public $host = [];
    public $name = '';
    public $password = '';
    public function __construct(
        array $host = ['localhost:9200'], 
        string $name = '',
        string $password = ''
    )
    {
        $this->host = $host;
        $this->name = $name;
        $this->password = $password;
    }
}
